<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>audio-vip</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js"  crossorigin="anonymous"></script>
    <script src="https://code.jquery.com/jquery-3.6.3.min.js" integrity="sha256-pvPw+upLPUjgMXY0G+8O0xUf+/Im1MZjXxxgOcBQBXU=" crossorigin="anonymous"></script>
</head>
<body>
    <header>
        <div class="container-fluid bg-body-tertiary">
           <nav class="navbar bg-body-tertiary " >
                <div class="container-fluid ms-auto d-flex justify-content-evenly">
                    <a href="#" class="navbar-brand">
                        <h1>Audio Vvip</h1></a>
						<form class="d-flex" role="search">
							<input type="search" placeholder="粘贴视频url" class="form-control me-2">
							<button class="btn btn-outline-success" type="button" id="search"> Search</button>
						   </form>
                </div>
				
           </nav> 
		   
        </div>
    </header>
    <main>
		<!--audio-modal-->
		<div class="modal fade" id="audio_modal" data-bs-backdrop="static">
			<div class="modal-dialog modal-xl">
				<div class="modal-content">
					<div class="modal-body">
						<div>
							<div class="container-fluid">
								<div class="ratio ratio-16x9">
									<iframe src="https://im1907.top/?jx=" title="Vvip video" allowfullscreen id="audio_view"></iframe>
								  </div>
								  
							</div>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-dark" data-bs-dismiss="modal">Close</button>
						
					</div>

				</div>
			</div>
		</div>
		<!--crack api button -->
		<div class="container text-bg-light d-flex  align-items-center flex-wrap" id="main">
			
		</div>
	</main>	
      
    <footer>
        <div class="container-fluid bg-body-tertiary ">
            <p class="text-dark text-center">@Copyright designed by Casper</p>
            <p class="text-center">视频api 来自油猴破解</p>
    </footer>  
    <script>
		"use strict"
        const originalInterfaceList = [
		{"name":"纯净/B站","url":"https://im1907.top/?jx=", "showType":3},
		{"name":"综合/B站","url":"https://jx.jsonplayer.com/player/?url=", "showType":3},
		{"name":"爱豆","url":"https://jx.aidouer.net/?url=", "showType":1},
		{"name":"虾米","url":"https://jx.xmflv.com/?url=", "showType":1},
		{"name":"OK解析","url":"https://okjx.cc/?url=", "showType":3},
		{"name":"诺讯","url":"https://www.nxflv.com/?url=", "showType":1},
		{"name":"夜幕","url":"https://www.yemu.xyz/?url=", "showType":3},
		{"name":"M3U8.TV","url":"https://jx.m3u8.tv/jiexi/?url=", "showType":3},
		{"name":"人人迷","url":"https://jx.blbo.cc:4433/?url=", "showType":3},
		{"name":"全民","url":"https://jx.blbo.cc:4433/?url=", "showType":3},
		{"name":"七哥","url":"https://jx.nnxv.cn/tv.php?url=", "showType":3},
		{"name":"冰豆","url":"https://api.qianqi.net/vip/?url=", "showType":3},
		{"name":"迪奥","url":"https://123.1dior.cn/?url=", "showType":1},
		{"name":"CK","url":"https://www.ckplayer.vip/jiexi/?url=", "showType":1},
		{"name":"ckmov","url":"https://www.ckmov.vip/api.php?url=", "showType":1},
		{"name":"playerjy/B站","url":"https://jx.playerjy.com/?url=", "showType":3},
		{"name":"ccyjjd","url":"https://ckmov.ccyjjd.com/ckmov/?url=", "showType":1},
		{"name":"诺诺","url":"https://www.ckmov.com/?url=", "showType":1},
		{"name":"H8","url":"https://www.h8jx.com/jiexi.php?url=", "showType":1},
		{"name":"BL","url":"https://vip.bljiex.com/?v=", "showType":1},
		{"name":"解析la","url":"https://api.jiexi.la/?url=", "showType":1},
		{"name":"MUTV","url":"https://jiexi.janan.net/jiexi/?url=", "showType":1},
		{"name":"MAO","url":"https://www.mtosz.com/m3u8.php?url=", "showType":1},
		{"name":"老板","url":"https://vip.laobandq.com/jiexi.php?url=", "showType":1},
		{"name":"盘古","url":"https://www.pangujiexi.cc/jiexi.php?url=", "showType":1},
		{"name":"盖世","url":"https://www.gai4.com/?url=", "showType":1},
		{"name":"0523","url":"https://go.yh0523.cn/y.cy?url=", "showType":1},
		{"name":"17云","url":"https://www.1717yun.com/jx/ty.php?url=", "showType":1},
		{"name":"4K","url":"https://jx.4kdv.com/?url=", "showType":1},
		{"name":"8090","url":"https://www.8090g.cn/?url=", "showType":1},
		{"name":"听乐","url":"https://jx.dj6u.com/?url=", "showType":1},
		{"name":"180","url":"https://jx.000180.top/jx/?url=", "showType":1},
		{"name":"无名","url":"https://www.administratorw.com/video.php?url=", "showType":1}
	];
	
	var crack_audio={};
	// 初始化将api 可用的的部分画成button元素展示到页面
	crack_audio.init=function(){
		originalInterfaceList.forEach(x=>{
			$("#main").append("<button></button>");
			$("#main button").last().addClass("btn btn-dark m-1").attr("type","button").text(x.name).prop("url",x.url).attr("data-bs-toggle","modal").attr("data-bs-target","#audio_modal")
		});
		crack_audio.bindAudioEvent();
	};
	crack_audio.bindAudioEvent=function(){
		$("#main button").click(function(){
			// 获取页面视频url
			let audio_url=$("input[type=\"search\"]").val();
			if($.isEmptyObject(audio_url)){
				$("#audio_modal .modal-body").html("<span class='text-danger'>请输入视频地址！</span>")

			} 
			else{
				let crack_audio_url=$(this).prop("url")+audio_url;
			$("#audio_view").removeAttr("src").attr("src",crack_audio_url);
			}
			
		});
	};
	// TODO 针对所有api 进行检测过滤，减少无效数据来源
	$(document).ready(function(){
		crack_audio.init();
	})

    </script>   
</body>
</html>